package cn.kgc.common.entity;

import java.util.List;

/**
 * Created by teacher ZHANG on 2023/3/21
 */
public class DataPage<T> {
    private List<T> dataList;
    private Integer rowCount;
    private Integer pageCount;
    private Integer pageNum;
    private Integer pageSize;

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> userList) {
        this.dataList = userList;
    }

    public Integer getRowCount() {
        return rowCount;
    }

    public void setRowCount(Integer rowCount) {
        this.rowCount = rowCount;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "DataPage{" +
                "dataList=" + dataList +
                ", rowCount=" + rowCount +
                ", pageCount=" + pageCount +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
